<div id="comment">
    <span class="comment-meta">
        <!--if($commentData)-->
        <span class="num">{{$blogData->commentCount}}</span>条评论
        <!--else-->
        还没有评论
        <!--endif-->
    </span>
    <!--{ function children($children){ }-->
    <!--if($children)-->
    <ul class="comment-children">
    <!--foreach($children as $cmt)-->
        <li class="comment-item" id="comment-{{$cmt->id}}">
            <img class="avatar" src="{{$cmt->avatar}}" alt="{{$cmt->author}}"/>
            <p class="meta"><a class="name" href="#">{{$cmt->author}}</a>
                <span class="time" rel="{{$cmt->createDate}}">{{date('m.d H:i',$cmt->createDate)}}</span>
                <a class="reply" href="#" rel="{{$cmt->id}}">回复</a>
            </p>
            <div class="content">{{$cmt->content}}</div>
            <!--{ children($cmt->children) }-->
        </li>
    <!--endif-->
    </ul>
    <!--endif-->
    <!--{ } }-->
    <!--if($commentData)-->
    <div class="comment-main">
        <!--foreach($commentData as $k=>$cmt)-->
        <div class="comment-item" id="comment-{{$cmt->id}}">
            <img class="avatar" src="{{$cmt->avatar}}" alt="{{$cmt->author}}"/>
            <p class="meta"><a class="name" href="#">{{$cmt->author}}</a>
                <span class="time" rel="{{$cmt->createDate}}">{{date('m.d H:i',$cmt->createDate)}}</span>
                <a class="reply" href="#" rel="{{$cmt->id}}">回复</a>
                <span class="floor">#{{$k+1}}</span>
            </p>
            <div class="content">{{$cmt->content}}</div>
            <!--{ children($cmt->children) }-->
        </div>
        <!--endforeach-->
    </div>
    <!--endif-->
    <div id="comment-reply"></div>
    <form id="comment-form" action="">
        <div class="comment-form-meta">
            <input class="ipt" id="comment-author" name="author" type="text" required="required" placeholder="您的昵称"
                   data-message="请输入您的称呼"/>
            <input class="ipt" id="comment-email" name="email" type="email" required="required" placeholder="您的邮箱" data-message="请输入正确的邮箱"/>
            <input class="ipt" id="comment-url" name="url" type="url" placeholder="您的网址，以http://开头" data-message="请输入正确的网址"/>
        </div>
        <div class="comment-form-content">
            <textarea name="content" id="comment-content" class="ipt" required="required" data-message="请输入内容"></textarea>
            <input class="btn" id="comment-submit" type="submit" value="Post Comment"/>
            <input id="comment-parent" type="hidden" name="parentId" value="0"/>
            <input id="comment-node" type="hidden" name="node" value="{{$blogData->id}}"/>
        </div>
    </form>
</div>